class TSvrTm{
    constructor(){
        this.serverTime = ( new Date()).getTime();
    }

    regist2Svr(webSvr){
        try{
            var me = this;
            var key = ['sys' , 'svr' , 'getTime'].join("/")
            webSvr.actionHandler[key] = function(result , req , resp){
                result.result =( new Date()).getTime();
                resp.send(JSON.stringify((result)));
            }
        }
        catch(Exce){
            console.log(Exce)
        }
    }
}


module.exports = {
    TSvrTm : TSvrTm
}